import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    activeMenuName: "",
    userInfo: [],
    categoryList: [],
  },
  getters: {},
  mutations: {
    updateActiveMenuName(state, val) {
      state.activeMenuName = val;
    },
    updateUserInfo(state, userInfo) {
      state.userInfo = userInfo;
    },
    updateCategoryList(state, categoryList) {
      state.categoryList = categoryList;
    },
  },
  actions: {},
  modules: {},
});
